package com.leoman.adsindex.service;

import com.leoman.adsindex.entity.AdsIndex;
import com.leoman.banner.entity.Banner;
import com.leoman.common.service.GenericManager;
import org.springframework.data.domain.Page;
import org.springframework.ui.Model;

import java.util.List;

/**
 * Created by 蔡琦 on 2016/7/6 0006.
 *
 */
public interface AdsIndexService extends GenericManager<AdsIndex>{

    // 首页推荐列表（分页）
    Page<AdsIndex> page(Integer pageNum, Integer pageSize);

    // 通过id获取首页推荐详情
    void getInfo(Long adsIndexId, Model model);

    // 查询视频、小说、漫画的首页推荐
    List<AdsIndex> findByTypeAndCategoryId(Integer type, Long categoryId);
}
